<?php
/*
 * This file is part of the Dektrium project.
 *
 * (c) Dektrium project <http://github.com/dektrium>
 *
 * For the full copyright and license information, please view the LICENSE.md
 * file that was distributed with this source code.
 */

use yii\helpers\Html;

use yii\bootstrap\ActiveForm;


$this->title = '重置密码';

/**
 * @var yii\web\View $this
 */
?>
<style>
    .pass-button-verifyCodeSend-forget {
        border-radius: 4px;
        border: 1px solid #ddd;
        height: 34px;
        background: #f7f7f7;
        color: #666;
        font-weight: 400;
        width: 120px;
        float: left;
        margin-right: 10px;
        font-size: 14px;
        position: absolute;
        right: 0px;
        top: 0px;
    }
    #forget-form-code {
        width: 130px;
    }
    .field-forget-form-code {
        position: relative;
    }
</style>
<div class="row">
    <h1><?= Html::encode($this->title) ?></h1>
    <p style="margin-bottom: 40px"></p>
    <?php $form = ActiveForm::begin([
        'id' => 'registration-form',
        'layout' => 'horizontal',
        'fieldConfig' => [
            'template' => "{label}\n<div class=\"col-lg-3\">{input}</div>\n<div class=\"col-lg-8\">{error}</div>",
            'labelOptions' => ['class' => 'col-lg-1 control-label'],
        ],
    ]); ?>

    <?= $form->field($model, 'mobile') ?>
    <?= $form->field($model, 'code') ?>
    <div class="form-group">
        <div class="col-lg-offset-1 col-lg-1">
            <?= Html::submitButton('提交', ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>
        </div>
    </div>

    <?php ActiveForm::end(); ?>
</div>
</div>
